package com.example.icongyou.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class Course implements Serializable {

    @SerializedName("courseId")
    private String courseId;   // 课程ID (主键)

    @SerializedName("courseName")
    private String courseName; // 课程名称

    @SerializedName("teacherId")
    private String teacherId;  // 授课教师ID

    @SerializedName("description")
    private String description; // 课程描述

    @SerializedName("png")
    private String png;

    public int getTotalLessons() {
        return totalLessons;
    }

    public void setTotalLessons(int totalLessons) {
        this.totalLessons = totalLessons;
    }

    public String getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(String semesterId) {
        this.semesterId = semesterId;
    }

    @SerializedName("totalLessons")
    private int totalLessons; // 总课时

    @SerializedName("semesterId")
    private String semesterId; // 关联学期ID

    @SerializedName("teacherName")
    private String teacherName;//授课教师名字

    // 完整构造函数
    public Course(String courseId, String courseName, String teacherId, String description, int totalLessons, String semesterId,String teacherName) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.teacherId = teacherId;
        this.description = description;
        this.totalLessons = totalLessons;
        this.semesterId = semesterId;
        this.teacherName = teacherName;
    }

    // Getters and Setters
    public String getCourseId() {
        return courseId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPng() {
        return png;
    }

    public void setPng(String png) {
        this.png = png;
    }
}